package com.zhaol.oa.controller;


import com.zhaol.oa.entity.Tower;
import com.zhaol.oa.mapper.TowerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
public class TowerController {
    @Autowired
    private TowerMapper towerMapper;
    @RequestMapping("/selectTowerList")
    public List<Tower> selectTowerList() {
        return towerMapper.selectTowerList();
    }
}
